﻿/* 
    require: Utilities.js 
*/
etui.ui = etui.ui || {};
(function (ns) {
    function FacebookSender() {
        this.receiverName;
        this.receiverWin;
    }
    FacebookSender.prototype.sendData = function (jsonObj) {
        // parent window is a iframe or a window.
        // var parent = window.parent.parent || window.parent.opener;
        // var receiverName = this.receiverName;
        var rn = this.receiverName;
        if (!rn) {
            rn = new etui.util.Url(location.href).param("rn");
        }
        this.receiverWin[this.receiverName].fireEvent(jsonObj);
    };
    ns.FacebookSender = FacebookSender;
})(etui.ui);